public class Lab02_Task2 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        int Number1 = Integer.parseInt(args[0]);
        int Number2 = Integer.parseInt(args[1]);
        
        System.out.println((Number1-Number2)+" "+(Number1*Number2));
    }
    
}